package com.mike.billingserver.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xiaozefeng
 * @date 2018-12-20 15:36
 */
@Data
public class KeyValueVO {

    private String key;
    private String value;

    public KeyValueVO(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static List<KeyValueVO> generateMonth() {
        List<KeyValueVO> result = new ArrayList<>();
        for (int i = 1; i <= 12; i++) {
            result.add(new KeyValueVO(i + "月", i + ""));
        }
        return result;
    }
}
